package com.heh.mybatisplus.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@Schema(description="com-example-demo-pojo-Emp")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "emp")
public class Emp implements Serializable {
//    @TableId(value = "id", type = IdType.AUTO)
//    @Schema(description="")
//    private Integer id;

    @TableField(value = "EMPNO")
    @Schema(description="")
    private Integer empno;

    @TableField(value = "ENAME")
    @Schema(description="")
    private String eName;

    @TableField(value = "JOB")
    @Schema(description="")
    private String job;

    @TableField(value = "MGR")
    @Schema(description="")
    private Integer mgr;

    @TableField(value = "HIREDATE")
    @Schema(description="")
    private Date hireDate;

    @TableField(value = "SAL")
    @Schema(description="")
    private Double sal;

    @TableField(value = "COMM")
    @Schema(description="")
    private Double comm;

    @TableField(value = "DEPTNO")
    @Schema(description="")
    private Integer deptno;

    @TableField(value = "create_time")
    @Schema(description = "创建时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date createTime;

//    @TableField(exist = false)
//    @Schema(description="")
//    private String dName;
    @TableField(exist = false)
    private Dept dept;



    private static final long serialVersionUID = 1L;
}